#ifndef FILESENDER_H
#define FILESENDER_H

#include <QTcpSocket>
#include <QFile>
#include <QFileInfo>

class FileSender : public QTcpSocket
{
    Q_OBJECT

public:
    FileSender(QObject *parent = 0);
    void sendFile(const QString &fileName, const QString &hostName, quint16 port);

private slots:
    void onConnected();

signals:
    void fileSent();
    void failed();

private:
    QString fileName;
};

#endif // FILESENDER_H
